import Base from '../../static/js/base'
class Location extends Base{
	constructor() {
		super();
	}
	//地址列表
	site_list(callBack) {
		var that = this;
		var params = {
		  url: 'site/site_list',
		  sCallBack: function (res) {
			callBack && callBack(res.data);
		  }
		};
		that.request(params);
	};
	//地址删除
	delete_site(id,callBack) {
		var that = this;
		var params = {
		  url: 'site/delete_site',
		  data:{
			  id:id
		  },
		  method:'DELETE',
		  sCallBack: function (res) {
			callBack && callBack(res.data);
		  }
		};
		that.request(params);
	};
	
}

export default Location	